package com.dayou.service.impl;

import java.util.List;

import com.dayou.common.core.text.Convert;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.dayou.mapper.RegInfoMapper;
import com.dayou.bean.RegInfo;
import com.dayou.service.IRegInfoService;

/**
 * 外来人员注册 服务层实现
 * 
 * @author dayou
 * @date 2020-04-29
 */
@Service
public class RegInfoService implements IRegInfoService
{
	@Autowired
	private RegInfoMapper regInfoMapper;

	/**
     * 查询外来人员注册信息
     * 
     * @param id 外来人员注册ID
     * @return 外来人员注册信息
     */
    @Override
	public RegInfo selectRegInfoById(Integer id)
	{
	    return regInfoMapper.selectRegInfoById(id);
	}

	@Override
	public List<RegInfo> selectRegInfoByIds(String ids) {
		return regInfoMapper.selectRegInfoByIds(Convert.toStrArray(ids));
	}

	/**
     * 查询外来人员注册列表
     * 
     * @param regInfo 外来人员注册信息
     * @return 外来人员注册集合
     */
	@Override
	public List<RegInfo> selectRegInfoList(RegInfo regInfo)
	{
	    return regInfoMapper.selectRegInfoList(regInfo);
	}
}
